package co.com.smart.eagle.client.view.util;

import co.com.smart.eagle.client.view.impl.components.SmartAlertDialog;
import co.com.smart.eagle.client.view.impl.components.SmartAlertDialog.CallBackModal;
import co.com.smart.eagle.infrastructure.dto.SmartTipoMensajes;

/**
 * 
 * @author Andres Felipe Escobar Lopez
 *
 */
public class SmartMensajes {
	
	private static SmartMensajes instance;

	public static synchronized SmartMensajes getInstance() {
		if(instance == null){
			instance = new SmartMensajes();
		}
		return instance;
	}

	
	public void show(String title, String message, SmartTipoMensajes type,CallBackModal callBack){
		SmartAlertDialog alert = new SmartAlertDialog(title, message, type, callBack);
		alert.showAlert();
	}
	
	public void show(String title, String message, SmartTipoMensajes type){
		SmartAlertDialog alert = new SmartAlertDialog(title, message, type);
		alert.showAlert();
	}
	
	public void show(String title, String message){
		SmartAlertDialog alert = new SmartAlertDialog(title, message);
		alert.showAlert();
	}

}
